package com.bwie.controller;

import com.bwie.pojo.ProdAtta;
import com.bwie.service.ProdAttaService;
import com.bwie.service.impl.ProdAttaServiceImpl;
import com.bwie.utils.R;
import org.springframework.web.bind.annotation.*;

import org.springframework.beans.factory.annotation.Autowired;

/**
 * 商品附件表(tb_prod_atta)表控制层
 *
 * @author xxxxx
 */
@RestController
@RequestMapping("/product/product")
public class ProdAttaController {
    /**
     * 服务对象
     */
    @Autowired
    private ProdAttaService prodAttaService;



    /**
     * @author: 鑫仔
     * @description: 添加商品附件
     * @params: [com.bwie.pojo.ProdAtta]
     * @return: com.bwie.utils.R
     * @date: 2025/7/22 17:05
     */
    @PostMapping("addProdAtta")
    public R addProdAtta(
            @RequestBody ProdAtta prodAtta
    ) {
        return prodAttaService.addProdAtta(prodAtta);
    }

}